package com.huangbc.gateway.exception;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

/**
 * @Author:Derek.huang on 2024/4/12 14:50
 */

@Configuration
public class GatewayExceptionConfig {

    @Bean
    @Order(Ordered.HIGHEST_PRECEDENCE)
    public MyExceptionHandler myExceptionHandler(){
        return new MyExceptionHandler();
    }
}

